package com.wst.system.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wst.system.config.exception.GlobalExcetion;
import com.wst.system.security.entity.SysUserRoleEntity;
import com.wst.system.security.entity.dto.SysUserRoleEntityDto;
import com.wst.system.security.entity.vo.SysUserRoleEntityVo;

import java.io.Serializable;
import java.util.List;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/6/11 14:46
 * @since JDK 1.8
 */
public interface SysUserRoleService extends IService<SysUserRoleEntity> {

    List<SysUserRoleEntity> selectUserRoleRoleEntity(String uid,String[] rids);

    List<SysUserRoleEntity> selectUserRoleEntityByUid(Serializable uid);

    List<SysUserRoleEntityDto> selectUserRoleEntityDtoByUid(Serializable uid);

    void saveUserRole(SysUserRoleEntityVo vo) throws GlobalExcetion;

    void deleteByUserIdAndRoleId(Serializable uid,Serializable rid) throws GlobalExcetion;
}
